home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group93a.txt
/
000076_icon-group-sender _Mon Mar 1 13:52:20 1993.msg
< prev
next >
Wrap
Internet Message Format
|
1993-04-21
|
2KB
Received: by cheltenham.cs.arizona.edu; Mon, 1 Mar 1993 16:35:14 MST
Date: 01 Mar 1993 13:52:20 -0600 (CST)
From: Chris Tenaglia - 257-8765 <TENAGLIA@mis.mcw.edu>
Subject: Env Vars
To: icon-group@cs.arizona.edu
Message-Id: <01GVANRLPDTI8WWIGG@mis.mcw.edu>
Organization: Medical College of Wisconsin (Milwaukee, WI)
X-Vms-To: IN%"icon-group@cs.arizona.edu"
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-Transfer-Encoding: 7BIT
Status: R
Errors-To: icon-group-errors@cs.arizona.edu
In unix, changing and passing environmental variables can be done by
having a shell script set the vaiable and run the icon program. I'm
assuming the child process get the env of the parent. I think I'd
better try this first, but this would be my approach.
I suppose one could write a program that would write another program
or script and run it. But I haven't tried this in the X- environment
yet.
In DOS I do it a bit differently :
system("SET >_SET.TMP")
envar := open("_SET.TMP")
titlevar := ""
every line := !envar do
if match("TITLE=",line) then titlevar := line[7:0]
close(envar)
Because as of my DOS Icon version, there is no getenv().
Chris Tenaglia (System Manager) | "The past explained,
Medical College of Wisconsin | the future fortold,
8701 W. Watertown Plank Rd. | the present largely appologized for."
Milwaukee, WI 53226 | Organon to The Doctor
(414)257-8765 |
tenaglia@mis.mcw.edu